import request from '@/utils/request'

// 查询审批记录
export function getApprovalList(query) {
  return request({
    url: '/module/approval/list',
    method: 'get',
    params: query
  })
}
//新增审批记录
export function  addApproval(data){
  return request({
    url:'/module/approval/add',
    method:'POST',
    data,
  })
}
// 查询审批记录
export function  getApprovalInfo(id){
  return request({
    url:'/module/approval/'+id,
    method:'GET'
  })
}
//修改审批记录
export  function  editApprovalInfo(data){
  return request({
    url:'/module/approval/update',
    method:'PUT',
    data,
  })
}
